package com.ftg.product.shangpin.service;


import com.ftg.product.shangpin.mapper.ShangpinMapper;
import com.ftg.product.shangpin.page.PageBean;
import com.ftg.product.shangpin.pojo.Nongchang;
import com.ftg.product.shangpin.pojo.Shangpin;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShangpinService {
    @Autowired
    ShangpinMapper s;

    public List<Shangpin> show(Shangpin shangpin,PageBean pageBean) {
        return s.show(shangpin, pageBean);
    }


    public int insert(Shangpin shangpin){
        return s.insert(shangpin);
    }
    public List<Nongchang> showClazzList(){
        return s.showClazzList();
    }

}
